package de.tsajar.es.damage;

import com.simsilica.es.EntityComponent;
import com.simsilica.es.EntityId;
import com.simsilica.es.PersistentComponent;

/**
 *
 * @author Eike Foede
 */
public class DamageComponent implements PersistentComponent{

    private float damage;
    private EntityId target;

    public DamageComponent(EntityId target, float damage) {
	this.damage = damage;
	this.target = target;
    }

    public float getDamage() {
	return damage;
    }

    public EntityId getTarget() {
	return target;
    }
}
